import {request} from '../utils/util';
const defaultSettings = require('../config/defaultSettings')
const bannerUrl = {
  //分页查询bannerInfo
  queryPage:defaultSettings.appServer+'/AppExcludeController/bannerPage',
}
function queryTopBannerInfo(){
  let parameter ={}
  parameter["pageNo"]=1
  parameter["pageSize"]=5
  parameter["queryForm"]=[]
  parameter["orderColumns"]=[]
  parameter["queryForm"].push({field:"isUse",val:defaultSettings.constants.yes})
  parameter["orderColumns"].push({field:"bannerOrder",val:"asc"})
  return request({url:bannerUrl.queryPage,data:parameter});
}

module.exports = {
  queryTopBannerInfo,bannerUrl
}